#include <UnitTest++/UnitTest++.h>
#include "../DefaultCompareFunction.h"

using namespace MockItNow;

DEFAULT_COMPARE_FUNCTION(float&, CompareByAddress);

namespace
{
	TEST (DefaultCompareFunctionIsCompareByValue)
	{
		DefaultCompareFunction<int> defaultCompareFunction;
		CHECK_EQUAL(&CompareByValue<int>, defaultCompareFunction.function);
	}

	TEST (CanSpecifyAlternateDefaultFunction)
	{
		DefaultCompareFunction<float&> defaultCompareFunction;
		CHECK_EQUAL(&CompareByAddress<float>, defaultCompareFunction.function);
	}
}
